<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>列表</a></li>
		</ul>
		
		<php>
			$action=array("1"=>"智勇三张","2"=>"海盗船长","3"=>"转盘","4"=>"开心牛仔","5"=>"二八贝");
			$status=array("0"=>"进行中","1"=>"正常结束","2"=>"主播关闭","3"=>"意外结束");
			$rs=array("1"=>"未中奖","2"=>"中奖");
		</php>
		<form class="well form-search" method="post" action="{:U('Game/index2')}">
			中奖位置：{$formget.result} &nbsp;&nbsp;
			<input type="hidden" name="gameid" value="{$formget.gameid}">
			<input type="hidden" name="result" value="{$formget.result}">
			中奖： 
			<select class="select_2" name="rs">
				<option value="">全部</option>
				<volist name="rs" id="v">
					<option value="{$key}" <if condition="$formget.rs eq $key">selected</if> >{$v}</option>
				</volist>

			</select> &nbsp;&nbsp;
			用户： 
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入用户id...">
			<input type="submit" class="btn btn-primary" value="搜索">
			<a href="javascript:history.back()" class="btn">返回</a>
		</form>	
		<form method="post" class="js-ajax-form" action="">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">ID</th>
						<th>游戏ID</th>
						<th>游戏类型</th>
						<th>用户（ID）</th>
						<th>位置1</th>
						<th>位置2</th>
						<th>位置3</th>
						<th>位置4</th>
						<th>中奖金额</th>
						<th>下注时间</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td align="center">{$vo.id}</td>
						<td align="center">{$vo.gameid}</td>
						<td>{$action[$vo['action']]}</td>
						<td>{$vo['userinfo']['user_nicename']} ( {$vo['uid']} )</td>
						<td>{$vo.coin_1}</td>
						<td>{$vo.coin_2}</td>
						<td>{$vo.coin_3}</td>
						<td>{$vo.coin_4}</td>
						<td>{$vo.win}</td>
						<td>{$vo.addtime|date="Y-m-d H:i:s",###}</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
		<div class="pagination">{$page}</div>
	</div> 
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>